import request from '@/router/axios';


export const remove = (id) => {
  return request({
    url: '/res/album/delFolder',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
        albumId:id,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/res/album/saveFolder',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/res/album/saveFolder',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const getAlbumTreeData = (albumCode,resType) => {
  return request({
    url: '/res/album/getTree',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      albumCode,resType
    }
  })
}

export const listAccessory = (option) => {
  return request({
    url: '/res/album/listAccessory',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      albumId:option.albumId,
      orderBy:option.orderBy,
      sval:option.sval,
      page:option.page,
      size:option.size
    }
  })
}


export const removeAccessory = (id) => {
  return request({
    url: '/res/album/delAccessory',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      mulitId:id+"",
    }
  })
}



